﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using FineUI;
using SDLITS.Model;
using SDLITS.Common;

namespace SDLITS.Web.Personal
{
    public partial class DeskDetail : CommonBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["id"]))
            {
                string id = Request["id"].Trim();
                V_AnnounceUser ann = SDDbSession.Default.From<V_AnnounceUser>().Where(V_AnnounceUser._.AnnID == id).ToFirst();
                if (ann != null)
                {
                    start.Text = ann.StartDate.ToString();
                    end.Text = ann.EndDate.ToString();
                    create.Text = ann.CreateDate.ToString();
                    realname.Text = ann.RealName;
                    description.Text = ann.Description;
                }
            }
        }
    }
}